package com.healthtop.service;

import com.healthtop.common.HttpMessageResult;
import com.healthtop.dto.LoginDto;
import com.healthtop.dto.RegisteredDto;
import com.healthtop.dto.XsUserDto;
import com.healthtop.model.XsUser;
import com.healthtop.utils.AjaxResponseStatus;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface XsUserService {

    XsUser login(LoginDto loginDto, HttpServletRequest request);

    XsUser registered(RegisteredDto registeredDto, HttpServletRequest request);

    List<Map> selectUserByRoleId(long roleId);

    boolean userNameIsNull(String userName,Long userId);

    boolean phoneNumIsNull(String phoneNum,Long userId);

    XsUserDto forward(XsUserDto xsUserDto);

    void operate(XsUserDto xsUserDto);

    void delete(XsUserDto xsUserDto);

    XsUserDto updatePwd(XsUserDto xsUserDto);

    AjaxResponseStatus updatePassword(XsUserDto xsUserDto);
}
